<!DOCTYPE html>
<html>
	<head>
		<title>填写订单信息</title>
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="/bower_components/bootstrap/dist/css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="/styles/member.css">
		<link rel="stylesheet" type="text/css" href="/styles/main.css">
		<script type="text/javascript" src="/bower_components/jquery/dist/jquery.min.js"></script>
		<script type="text/javascript" src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
</head>
	</head>
	<body>
		<% include top.ejs %>
		<div class="container">
			<div class="row">
				<div class="col-md-offset-2 col-md-8">
					<div class="page-header">
						<a href="/member/MemberCenter"><返回个人中心</a>&nbsp;&nbsp;&nbsp;填写订单信息
					</div>
					<form action="dofillOrder" method="POST">
						<div class="form-group">
						  <label>收货人</label>
						  <input type="text" name="receiver" class="form-control" placeholder="请填写收货人姓名">
						</div>
		
						<div class="form-group">
						  <label>订单金额</label>
						  <select class="form-control" name="amount">
						  	<option><%=buy.price%></option>
						  </select>
						</div>
						<div class="form-group">
						  <label>送货时间</label>
						  <select class="form-control" name="deliveryTime">
						  	<option>不限</option>
						  	<option>上午</option>
						  	<option>下午</option>
						  	<option>晚上</option>
						  </select>
						</div>
						<div class="form-group">
						  <input type="hidden"  name="allState" class="form-control" value="待发货" >
						</div>
						<button type="button" id="submit" class="btn btn-success">提交订单</button>
					</form>
				</div>
			</div>
		</div>
		<br/>
		<br/>
		<br/>
		<% include footer.ejs %>
	</body>
</html>
<script type="text/javascript">
	$(function(){
		 $("#submit").click(function(){
    	$.post("dofillOrder",
    	{
    	receiver:$("input[name='receiver']").val(),
    	amount:$("select[name='amount']").val(),
    	deliveryTime:$("select[name='deliveryTime']").val(),
    	allState:$("input[name='allState']").val(),
    	},
    function(response,status){
      		alert(response);
    	 	
    	    })
    		return false;
    	})
	})
</script> 